<?php
class index_intall
{
    public function __construct()
    {
        $this->view = new system_view();
        $this->model = new model__index_model();
    }
    
    public function index_controller()
    {
        $list_app = $this->model->md_im_list_app();
        $strHtml = $this->view->view_display('index/index');
        $arrHtml = $this->view->view_get_block_html($strHtml);
        $strOkHtml = '';
        if(!empty($list_app)){
            foreach($list_app as $value){
                $strOkHtml .= $this->view->view_assign($arrHtml['app'],array(
                                                                            'app_value'                 => $value['App'],
                                                                            'app_name'                  => $value['CatName'],
                                                                        ));
            }
        }
        $strHtmlContent = $this->view->view_assign_block($strHtml, array('list_app'=>$strOkHtml));
        return $strHtmlContent;
    }
}

